package com.itheima.hello;

public class Helloworld {
    public static void main(String[] args) {
        int sum = getSum(1, 2);
        System.out.println(sum);
    }

    public static int getSum(int a, int b) {
        return a + b;
    }
    public static int getDiv(int a, int b) {
        if (b == 0) {
            return -1;
        }
        return a / b;
    }

    public static int calc(short a, short b){
        return a + b;
    }
}